package com.zhangtai.modules.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangtai.modules.entity.salary.AwardPackageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 奖罚包表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-10-19 09:53:57
 */
@Mapper
public interface AwardPackageDao extends BaseMapper<AwardPackageEntity> {

    @Select("SELECT count(id) FROM tb_award_package WHERE inset_date = #{insetDate}")
    Long getAwardPackageNum(@Param("insetDate")String insetDate);

}
